package com.shopping_back.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;

@Data
@TableName("combo_item")
public class ComboItem {
    private Long id;
    private Long comboId;
    private Long skuId;
    private Integer quantity;

    @TableField(exist = false)
    private String skuName;

    @TableField(exist = false)
    private String skuImage;

    @TableField(exist = false)
    private String spuMainImage;

    @TableField(exist = false)
    private Long activityId;

    @TableField(exist = false)
    private BigDecimal comboPrice;

    @TableField(exist = false)
    private BigDecimal skuPrice;
}

//@TableId(type = IdType.AUTO)
//private Long id;
//private Long activityId;
//private Long skuId;
//private BigDecimal comboPrice;